<cfinclude template="/ecada/header.cfm">
<cfoutput>
	<cfif isDefined("session.id")>
		<h2>Experiment Archive</h2>
		<cfquery datasource="exp" name="experiments">
			SELECT *
			FROm experiment 
			WHERE StatusID = (SELECT id
								FROM expstatus
								WHERE Status = 'Completed')
			AND userid=#session.id#
			ORDER BY experiment.id
		</cfquery>
		
		<cfloop query="experiments">
			<h3>
				<a href="/ecada/analyse/seeexp.cfm?id=#id#">#title#</a>
			</h3>
		</cfloop>

	</cfif>
</cfoutput>
<cfinclude template="/ecada/footer.cfm">